﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EMC.VISITOR.Core.Option
{
    /// <summary>
    /// 控制器和方法访问权限
    /// </summary>
    public class ControllerActionFilterOptions : IConfigurableOptions
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool GlobalEnabled { get; set; }
        /// <summary>
        /// 可访问的控制器
        /// </summary>
        public string[] CanUseControllers { get; set; }
        /// <summary>
        /// 不可访问的控制器
        /// </summary>
        public string[] NoUseControllers { get; set; }
        /// <summary>
        /// 可访问的方法
        /// </summary>
        public string[] CanUseActions { get; set; }
        /// <summary>
        /// 不可访问的方法
        /// </summary>
        public string[] NoUseActions { get; set; }
    }
}
